package com.hx.init;

import com.hx.cache.CacheDict;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class SysInit implements ApplicationRunner {
    @Autowired
    private CacheDict cacheDict;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        cacheDict.loadAllDictData();
    }
}
